function main() {
    Java.perform(function x() {
        console.log("enter hook")
      //  invoke-direct {p0}, Lcom/xiantu/paysdk/utils/FileUtil;->getStr()Ljava/lang/String;
        Java.use("com.xiantu.paysdk.utils.FileUtil").getStr.implementation = function (){
            var ret = this.getStr()
            console.log(ret)
            return ret
        }
    })

}

setImmediate(main)

// frida -U -f com.pkwan.op.cloudgame --no-pause -l testhhw.js